]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
authPrompt: Hide password when insensitive
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 9 Sep 2020 19:06:22 +0000 (21:06 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 21 Sep 2020 20:51:48 +0000 (22:51 +0200)
The purpose of password peeking is to spot and correct errors;
the latter isn't possible when the entry is non-editable, so
we can hide the password again while authentication is ongoing.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3138

js/gdm/authPrompt.js

index a6ea6c8dd47e507cea73dff0da4085bc25167866..c6231a57fd2d3f793a1822bf7c9a91527211b140 100644 (file)
@@ -432,6 +432,8 @@ var AuthPrompt = GObject.registerClass({
 
         if (sensitive)
             this._entry.grab_key_focus();
+        else if (this._entry === this._passwordEntry)
+            this._entry.password_visible = false;
     }
 
     vfunc_hide() {